import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86136
 * Date: 2025-04-29
 * Time: 17:37
 */
public class Demo4 {
    public static void main(String[] args) {
        try (OutputStream outputStream = new FileOutputStream("./output.txt",true)) {
//            outputStream.write('a');//97
//            outputStream.write('b');//98
//            outputStream.write('c');//99
//            byte[] bytes = {99};
//            outputStream.write(bytes);

            outputStream.write(100);
            outputStream.write(101);
            outputStream.write(102);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
